home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / qasa41.zip / SAMPLE.DEF < prev    next >
Text File  |  1993-01-17  |  11KB  |  519 lines

  1.  
  2.                           Sample QASA Database
  3.  
  4. This file must be compiled with QASA's database compiler, which will
  5. create the file SAMPLE.QA.
  6.  
  7. This sample database contains questions and answers about QASA. 
  8.  
  9. A QASA database may contain any of the following options. Any line
  10. not part of one of the following options is considered to be a comment,
  11. which is why this explanatory text may appear here.
  12.  
  13. Q=    question on following lines, terminated by a blank line or
  14.     another option. Must be on a line by itself.
  15. A=    answer on following lines, terminated by a blank line or
  16.     another option. Must be on a line by itself.
  17. P=    strip all punctuation from following answer list.
  18. N=    quiz name is on next line. Must be on a line by itself.
  19. M=    macro definition on following lines, terminated by a blank
  20.     line or another option. Must be on a line by itself.
  21. T=    time allowed is on next line in the format HH:MM:SS.
  22. C=    clear NOT allowed. No additional lines.
  23. S=    lock in sequential mode (user cannot change mode). No additional
  24.     lines.
  25. R=    lock in random mode (user cannot change mode). No additional
  26.     lines.
  27. F=    output score filename is on next line (no score recording 
  28.     if omitted).
  29. E=    encrypt score file.
  30. W=    assign weighting. Weight appears as an integer on the next line.
  31.     This weight will be used for all questions following until and
  32.     unless another weight is assigned.
  33. D=    disable display of correct answers if answer is incorrect. No
  34.     additional lines.
  35. G=      define letter grade equivalency list or disable display of
  36.     letter grades during execution. To disable letter grade
  37.     display, the following line should contain "OFF" only. Otherwise,
  38.     any number of following lines contain the grade equivalencies
  39.     in the form <score>=<letter grade>.
  40. L=      limit the number of questions to a subset of the total number of
  41.         questions in the database. The number of questions in the subset
  42.         is specified on the following line.
  43. O=      omit the questions in the subset at compile time. Ignored without
  44.         the L= keyword. If L= is given without O=, then the subset will
  45.         be selected at run-time, giving a different subset each time the
  46.         database is run. If O= is given with L=, then the subset will be
  47.         determined by the compiler and the database will be the same each
  48.         time the program is run.
  49.  
  50. In this sample database, questions are weighted by type as follows:
  51.     multiple-choice        1 point each    
  52.     true/false (yes/no)    2 points each
  53.     fill-in            3 points each
  54.  
  55. Again, note that comments are just about free-form. Place them anywhere 
  56. except between option keywords and their termination. QASA will discard
  57. all comment text as it compiles this file, so you are not penalized for
  58. commenting your databases.
  59.  
  60. The sample database configuration follows....
  61.  
  62. ==========================================================================
  63.  
  64. Set the time limit to 10 minutes.
  65. ---------------------------------
  66. T=
  67. 10:00
  68.  
  69. Name the database. This name is displayed in QASA's main window.
  70. ----------------------------------------------------------------
  71. N=
  72. Q&A Study Aid Sample Database
  73.  
  74. Specify a score file. If it already exists, score data will be
  75. appended. Otherwise, a new file will be created using this name.
  76. ----------------------------------------------------------------
  77. F=
  78. sample.scr
  79.  
  80. Limit the number of questions to a random 20 out of the total of 25,
  81. and use the "O=" switch to cause the choice to be made at compile time.
  82. -----------------------------------------------------------------------
  83. L=
  84. 20
  85. O=
  86.  
  87. These are the 'true' and 'false' macro definitions...
  88. -----------------------------------------------------
  89.  
  90. M=
  91. $TRUE$
  92. True
  93. T
  94. Yes
  95. Y
  96.  
  97. M=
  98. $FALSE$
  99. False
  100. F
  101. No
  102. N
  103.  
  104. Define the letter grade equivalency list. The last line (59.99) causes
  105. the letter grade display to be omitted until the user achieves a score
  106. of at least 59.99. Set this to 0 to always display the letter grade.
  107. ----------------------------------------------------------------------
  108.  
  109. G=
  110. 95    = A+
  111. 90    = A
  112. 85    = A-
  113. 83    = B+
  114. 80    = B
  115. 75    = B-
  116. 73    = C+
  117. 70    = C
  118. 67    = C-
  119. 65    = D+
  120. 63    = D
  121. 60    = D-
  122. 59.99 = F
  123.  
  124. If we wanted to turn off the display of letter grades so the letter
  125. grade would be shown only when the quiz was completed and in the
  126. score file (if defined), then we would use the following:
  127. -------------------------------------------------------------------
  128.  
  129. G=                   [this text turns off the G= keyword detection]
  130. OFF
  131.  
  132. The first question follows, with a weight of 3.
  133. -----------------------------------------------
  134.  
  135. W=
  136. 3
  137.  
  138. Ignore all punctuation in the answer.
  139. -------------------------------------
  140. P=
  141.  
  142. Q=
  143.  1. Fill-in:
  144.  
  145.  QASA requires a minimum of _____ bytes of memory.
  146.  
  147. A=
  148.  QASA requires at least 128K of memory.
  149.  128000
  150.  128K
  151.  
  152. Now the weighting is changed to 1 before multiple-choice questions.
  153. -------------------------------------------------------------------
  154.  
  155. W=
  156. 1
  157.  
  158. P=
  159.  
  160. Q=
  161.  2. Multiple-choice:
  162.  
  163.  How many questions and answers can typically be put in a QASA
  164.  database, assuming your computer has 512K bytes of free memory
  165.  when QASA is started?
  166.  
  167.     A. 1000
  168.     B. Limited by disk space
  169.     C. 40,000
  170.     D. All of the above
  171.     E. None of the above
  172.  
  173. A=
  174.     C. 40,000. Each question requires 10 bytes of memory.
  175.     C
  176.     40K
  177.     40000
  178.  
  179. Q=
  180.  3. Multiple-choice:
  181.  
  182.  How does QASA determine the correct answer?
  183.  
  184.     1. It knows the answers
  185.     2. By scanning the list of answers in the database and scoring
  186.        "correct" if your answer matches any of them.
  187.     3. By reading your mind
  188. A=
  189.     2. By scanning the list of answers in the database
  190.     By checking for matches.
  191.     2
  192.     Scanning
  193.     Matching
  194.  
  195. Q=
  196.  4. Multiple-choice:
  197.  
  198.  What will QASA do if my question won't fit in the 15 screen 
  199.  lines provided?
  200.  
  201.     1. Crash
  202.     2. Truncate the question
  203.     3. Display the question in 'pages'
  204. A=
  205.     2. Truncate the question
  206.     2
  207.     truncate
  208.  
  209. Q=
  210.  5. Multiple-choice:
  211.  
  212.  Can QASA assign a "weight" to each question?
  213.  
  214.     a. Yes, provided the total weight adds up to 100.
  215.     b. No.
  216.     c. Yes, without restriction.
  217. A=
  218.     c. Yes, without restriction.
  219.     c
  220.  
  221. Change the weight to 2 for "true/false".
  222. ----------------------------------------
  223.  
  224. W=
  225. 2
  226.  
  227. Q=
  228.  6. True/False:
  229.  
  230.  Is there a way to limit the time allowed to answer all questions?
  231. A=
  232.  $TRUE$
  233.  
  234. And back to 1 again for multiple-choice.
  235. ----------------------------------------
  236.  
  237. W=
  238. 1
  239.  
  240. Q=
  241.  7. Multiple-choice:
  242.  
  243.  How does QASA save the score?
  244.  
  245.     1. By appending the score information to the file "QASA.SCR".
  246.     2. It creates a score file defined by the "File/Load" command.
  247.     3. By appending the score to the file defined in the database.
  248.     4. Both 1 and 2 above.
  249.     5. None of the above.
  250. A=
  251.     3. By appending the score to the file defined in the database.
  252.     3
  253.  
  254. W=
  255. 2
  256.  
  257.  
  258. Q=
  259.  8. True/False
  260.  
  261.  Can the score file be exported so that it can be used with other
  262.  programs, such as database and spreadsheet programs?
  263. A=
  264. $TRUE$
  265.  
  266.  
  267. W=
  268. 2
  269.  
  270. Q=
  271.  9. True/False
  272.  
  273.  Can I skip questions without answering them and come back to them later?
  274. A=
  275. $TRUE$
  276.  
  277. W=
  278. 1
  279.  
  280. Q=
  281.  10. Multiple-choice
  282.  
  283.  If letter grades are assigned, how do they correspond to the score?
  284.  
  285.     a. In multiples of 5, where 95 is "A", 90 is "B", and so on.
  286.     b. Without restriction, using any grade equivalencies you choose.
  287.     c. Letter grades are not supported.
  288. A=
  289.  b. Without restriction, using any grade equivalencies you choose.
  290.  b
  291.  
  292.  
  293. W=
  294. 1
  295.  
  296. Q=
  297.  11. Multiple-choice:
  298.  
  299.  How does QASA locate my database?
  300.  
  301.     1. It searches the whole disk
  302.     2. It searches the current directory
  303.     3. It searches the directory specified in the "File/Load" command.
  304. A=
  305.     3. It searches the directory specified by "File/Load"
  306.     3
  307.  
  308.  
  309. W=
  310. 1
  311.  
  312. Q=
  313.  12. Multiple-choice:
  314.  
  315.  How does QASA locate its HELP file?
  316.     1. It searches the whole disk.
  317.     2. It searches the current directory.
  318.     3. It searches the directory specified by the "File/Load" command.
  319.     4. It searches all of the directories given by the PATH variable.
  320.        5. It will ask for the directory if it cannot find the file.
  321.     6. Both 2 and 4 above
  322.     7. 2, 4, and 5 above
  323.     8. All of the above
  324. A=
  325.     7. It searches the current directory, then the PATH, then asks.
  326.     7
  327.  
  328. W=
  329. 2
  330.  
  331. Q=
  332.  13. True/False
  333.  
  334.  Is QASA distributed with any features turned off to provide
  335.  an incentive to register the program?
  336. A=
  337. NO! The ASP forbids this practice, but you are required to register.
  338. $FALSE$
  339.  
  340.  
  341. W=
  342. 2
  343.  
  344. Q=
  345.  14. True/False
  346.  
  347.  The name of the database definition file must end with ".QA".
  348.  
  349. A=
  350. No! It CANNOT end with ".QA". The QASA compiler uses this extension!
  351. $FALSE$
  352.  
  353. W=
  354. 1
  355.  
  356. Q=
  357.  15. Multiple-choice:
  358.  
  359.  The number of correct answers that I can give for a question is
  360.  
  361.     A. Two
  362.     B. Five
  363.     C. Unlimited
  364.     D. Limited by available memory
  365. A=
  366.     D. Limited by available memory, but essentially unlimited.
  367.     D
  368.  
  369. W=
  370. 1
  371.  
  372. Q=
  373.  16. Multiple-choice
  374.  
  375.  How much memory will QASA use?
  376.  
  377.     1. As much as is available below 640K.
  378.     2. All memory, including Extended (XMS) and Expanded (EMM) memory.
  379.     3. Two full 64K frames.
  380.     4. All of the above.
  381.     5. None of the above.
  382. A=
  383.  1. As much as is available below 640K.
  384.  1
  385.  
  386. W=
  387. 2
  388.     
  389.  
  390.  
  391. Q=
  392.  17. True/False
  393.  
  394.  Can QASA handle an essay question?
  395. A=
  396. No. Scoring an essay question would require language interpretation.
  397. $FALSE$
  398.  
  399.  
  400. W=
  401. 0
  402.  
  403. Q=
  404.  18. Multiple-choice
  405.  
  406.  Where is the password stored that enables access to the score file?
  407.  
  408.     A. In the configuration file QASA.CFG.
  409.     B. In the help file QASA.HLP.
  410.     C. In a hidden file on disk.
  411.     D. Both A and C above.
  412.     E. None of the above.
  413. A=
  414. Sorry, there is no correct answer to this question!
  415.  
  416.  
  417. W=
  418. 1
  419.  
  420. Q=
  421.  19. Multiple-choice:
  422.  
  423.  Which of the answers given in the database does QASA display as correct
  424.  if I answer incorrectly?
  425.  
  426.     1. All of them
  427.     2. The last one
  428.     3. The first one
  429. A=
  430.     3. The first one
  431.     First
  432.     3
  433.     1st
  434.  
  435. W=
  436. 2
  437.  
  438. Q=
  439.  20. True/False
  440.  
  441.  Does QASA regard case ("A/a") in an answer as significant?
  442. A=
  443. $FALSE$
  444.  
  445.  
  446. W=
  447. 1
  448.  
  449. Q=
  450.  21. Multiple-choice:
  451.  
  452.  What will QASA do if I put tabs in my database?
  453.  
  454.     1. It will crash
  455.     2. It will expand them using 8-column tab stops
  456.     3. It will convert them to blanks
  457. A=
  458.     2. The QASA compiler will expand them using 8-column tab stops.
  459.     2
  460.     expand
  461.  
  462. Q=
  463.  22. Multiple-choice:
  464.  
  465.  How does QASA locate the keyword tags (e.g., Q=, A=) in the database?
  466.  
  467.     1. It looks at the first character of each line
  468.     2. It looks for those characters alone on a line
  469.     3. It assumes 7-line spacing
  470.         A=
  471.     2. It looks for those characters alone on a line
  472.     2
  473.  
  474. W=
  475. 2
  476.  
  477. Q=
  478.  23. True/False
  479.  
  480.  Is QASA public domain, or 'freeware'?
  481.  
  482. A=
  483. NO! QASA is SHAREWARE. If you use it, you must pay the registration fee.
  484. $FALSE$
  485.  
  486.  
  487. W=
  488. 1
  489.  
  490. Q=
  491.  24. Multiple-choice
  492.  
  493.  What if I want to change the database file?
  494.  
  495.     1. You may change it any time you wish.
  496.     2. You must recompile it.
  497.     3. You cannot change the database.
  498. A=
  499.     2. You must recompile it using the QASA compiler.
  500.     2
  501.  
  502. W=
  503. 2
  504.  
  505. Q=
  506.  25. True/False
  507.  
  508.  If I type the database to the screen using the DOS command
  509.  "type filename.qa", can I see the answers?
  510.  
  511. A=
  512. No, the database is encrypted for just this reason.
  513. $FALSE$
  514.  
  515.  
  516. End of sample database.....
  517. ---------------------------
  518.  
  519.